Skip to content

refactor: consolidate oversampled-PSF convolution helpers - #361

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/psf-oversample-refactor
Jul 8, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/psf-oversample-refactor

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Behaviour-preserving refactor (#360, Refactor Agent conservative cut): the four _convolved_*_over_sampled_{np,jax}_from bodies collapse into two shared engines parameterized by trailing dims and (for JAX) the caller's FFT kernel + dtype, preserving the documented image/mapping mixed-precision asymmetry; the four originals stay as thin wrappers with unchanged names, signatures and warning semantics. Also gitignores test_autoarray/output/.

Invariant: suites unchanged (PyAutoArray 863, downstream PyAutoGalaxy 946 + PyAutoLens 336 against the branch); ground-truth pins reproduced; np/JAX parity ≤2.2e-16. Net −31 lines. The convolver/ package split is recorded as deferred on #360.

🤖 Generated with Claude Code

Behaviour-preserving (suites 863/946/336 unchanged; ground-truth pins and
np/jax parity verified to machine precision):

- The four _convolved_{image,mapping_matrix}_over_sampled_{np,jax}_from
  bodies collapse into two shared engines parameterized by trailing dims
  (image = 1D, mapping matrix = 2D) and, for jax, the caller's fft kernel +
  dtype (preserving the image/mapping mixed-precision asymmetry documented
  in convolved_mapping_matrix_from). The four originals become thin
  wrappers keeping their names, signatures and warning semantics.
- .gitignore: test_autoarray/output/ (test-run artifacts leaked into a
  commit once on 2026-07-08).

Deferred per the Refactor Agent's too-large verdict, recorded on #360: the
convolver/ package split and the pre-series np/jax/FFT method-variant
duplication.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 8, 2026
@Jammy2211
Jammy2211 merged commit 7de9027 into main Jul 8, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/psf-oversample-refactor branch August 25, 2026 18:16
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant